﻿<%@ Page Title="inventory" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="dzs.Web.inventory.List" EnableEventValidation = "false" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 10px;" >
                        
                    </td>
                    <td >   <b>仓库：</b>                     
		<asp:DropDownList ID="ddlstore" runat="server">
        </asp:DropDownList>
                    <b>仓位名：</b><asp:TextBox ID="txtname" runat="server" Width="102px"></asp:TextBox>
                        &nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            <tr>
                   
                    <td style="text-align:left;" colspan="2" >   
            <asp:GridView ID="gridView" runat="server"  Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None"
                     OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated" PageSize="20">
                    <Columns>
                            
		<asp:BoundField DataField="spname" HeaderText="仓位" SortExpression="mid" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="sptname" HeaderText="仓位类型" SortExpression="spid" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="sname" HeaderText="仓库" SortExpression="nums" ItemStyle-HorizontalAlign="Center"  > 
                            
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="status" HeaderText="仓位状态" />
                        <asp:BoundField DataField="nums" HeaderText="数量" />
                        <asp:BoundField DataField="proid" HeaderText="项目编号" />
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" />
                        <asp:BoundField DataField="material" HeaderText="物料名" />
                        <asp:BoundField DataField="mmodel" HeaderText="规格型号" />
                        <asp:BoundField DataField="usework" HeaderText="需用单位" />
                        <asp:BoundField DataField="projecttype" HeaderText="项目类型" />
                        </Columns>
                <PagerStyle CssClass="mypager" />
<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               </td>
                </tr>
                           
                <tr>
                   
                    <td style="text-align:left;" colspan="2" >   
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CurrentPageButtonPosition="Center"
                            PageSize="20" AlwaysShowFirstLastPageNumber="True" CustomInfoTextAlign="Left"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" NumericButtonCount="10"
                    PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="" CustomInfoHTML="第 %CurrentPageIndex% 页|共 %PageCount% 页,%RecordCount%条记录 "
                    LayoutType="Table" ShowCustomInfoSection="Left" ShowNavigationToolTip="True"
                    ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextAfterPageIndexBox="页"
                    TextBeforePageIndexBox="转到第" onpagechanged="AspNetPager1_PageChanged">
                </webdiyer:AspNetPager>

                    </td>
                </tr>
                           
                <tr>
                    
                    <td align="left">
                        <asp:Button ID="btnout" runat="server" OnClick="btnout_Click" Text="导出" />
                    </td>
                    <td style="">                        
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
